{include file='public/head'}
<style>
    .layui-form-label{
        width: 200px;
    }
    .layui-input-block{
        margin-left: 230px;
    }
</style>
<body>
<div class="x-body">
    <form class="layui-form" id='mainForm' method="post" action="exportExcel">

        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>导出格式</label>
            <div class="layui-input-block">
                <select lay-filter="types" name="types" id='types' lay-verify="required">
                    <option value="1" >导出亚马逊欧洲EAN表</option>
                </select>
            </div>
        </div>

        <!--导出亚马逊欧洲EAN表-->
        <div id="excel1" class="excel">
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color: red">*</span>brand_name</label>
                <div class="layui-input-block">
                    <input type="text" id="brand" name="brand" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color: red">*</span>manufacturer</label>
                <div class="layui-input-block">
                    <input type="text" id="manufacturer" name="manufacturer" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color: red">*</span>Product Type</label>
                <div class="layui-input-block">
                    <input type="text" id="productType" name="productType" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label"><span style="color: red">*</span>recommended_browse_nodes</label>
                <div class="layui-input-block">
                    <input type="text" id="recommended" name="recommended" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>


        <input type="hidden" id="proname" name="proname" value="{$Think.get.proname}">
        <input type="hidden" id="code" name="code" value="{$Think.get.code}">
        <input type="hidden" id="platform" name="platform" value="{$Think.get.platform}">
        <input type="hidden" id="lang" name="lang" value="{$Think.get.lanid}">
        <input type="hidden" id="audit" name="audit" value="{$Think.get.audit}">
        <input type="hidden" id="bname" name="bname" value="{$Think.get.bname}">
        <input type="hidden" id="guids" name="guids" value="">
        <input type="hidden" id="source" name="source" value="{$Think.get.source}">
        <input type="hidden" id="start" name="start" value="{$Think.get.start}">
        <input type="hidden" id="end" name="end" value="{$Think.get.end}">

        <input type="submit" name="Submit" value="导出excel" id="btn_save" style="display: none"/>
    </form>
</div>
</body>
{include file='public/foot'}
<script type="text/javascript">
    var form = layui.form;
    var layer = layui.layer;
    $("#guids").val(parent.$('#guid').val());

    form.on('select(types)', function (data) {
        $('.excel').css('display', 'none');
        $('#excel' + data.value).css('display', 'block');
    });
</script>
